package k2_oop.p9_collection.demo05;

import java.util.Arrays;
import java.util.List;

public class UseArrays {

    public static void main(String[] args) {

        int[] nums = {4,6,1,7,9,4};
        Arrays.sort(nums);

        System.out.println(Arrays.toString(nums));

        List<Integer> list = Arrays.asList(1,2,3,4,5,6);
        System.out.println(list);

        int[] numsNew = Arrays.copyOf(nums,nums.length);
        System.out.println(Arrays.toString(numsNew));



    }
}
